Skip to main content

Adding a country to the block/captcha list

To add a country to the block/captcha list in Cloudflare, follow these steps:

  • Log in to your Cloudflare account.
  • Select the domain for which you want to block a country.
  • Click the "Firewall" tab in the top menu.
  • Scroll down to the "Country Blocking" section.
  • Click the "Add a country" button.
  • In the "Country" field, enter the name or code of the country you want to block.
  • Select the action you want to take for the selected country from the "Action" dropdown menu. You can choose between "Block" (to block all traffic from the country), "Challenge" (to present a captcha to users from the country), or "JS Challenge" (to present a JavaScript challenge to users from the country).
  • Click the "Save" button to add the country to the block/captcha list.

Keep in mind that it may take some time for the changes to take effect. You can view the status of your firewall rules by clicking on the "Firewall" tab and then clicking on the "Overview" tab.